package com.jumper.study.admin.dto.req;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

public class PasswordReq {
    @NotBlank(message="请填写原密码")
    private String oldPassword;

    @NotBlank(message="请填写新密码")
    @Size(min = 6, max = 20, message = "密码长度必须在6-20位之间")
    private String newPassword;

    @NotBlank(message="请填写确认密码")
    @Size(min = 6, max = 20, message = "密码长度必须在6-20位之间")
    private String confirmPassword;

    public String getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(String oldPassword) {
        this.oldPassword = oldPassword;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    public String getConfirmPassword() {
        return confirmPassword;
    }

    public void setConfirmPassword(String retryPassword) {
        this.confirmPassword = retryPassword;
    }
}
